package top.lixunda.ecommerce.server.good.api.entity.db;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 页面数据保存通用结构备份数据
 * </p>
 *
 * @author Xumda
 * @since 2020-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("page_info_show_backup")
@ApiModel(value="PageInfoShowBackupDO对象", description="页面数据保存通用结构备份数据")
public class PageInfoShowBackupDO extends Model<PageInfoShowBackupDO> {

    private static final long serialVersionUID=1L;

    public static final String TYPE_UPDATE = "UPDATE";

    public static final String TYPE_REMOVE = "REMOVE";

    @ApiModelProperty(value = "主键")
    @TableId(value = "backup_id", type = IdType.AUTO)
    private Integer backupId;

    @ApiModelProperty(value = "页面名称")
    @TableField("page")
    private String page;

    @ApiModelProperty(value = "页面模块名称")
    @TableField("module")
    private String module;

    @ApiModelProperty(value = "位置")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "链接属性")
    @TableField("link")
    private String link;

    @ApiModelProperty(value = "顺序号")
    @TableField("sequence")
    private Integer sequence;

    @ApiModelProperty(value = "图片")
    @TableField("image1")
    private String image1;

    @ApiModelProperty(value = "图片")
    @TableField("image2")
    private String image2;

    @ApiModelProperty(value = "图片")
    @TableField("image3")
    private String image3;

    @ApiModelProperty(value = "图片详情信息编号")
    @TableField("image_file1")
    private Integer imageFile1;

    @ApiModelProperty(value = "图片详情信息编号")
    @TableField("image_file2")
    private Integer imageFile2;

    @ApiModelProperty(value = "图片详情信息编号")
    @TableField("image_file3")
    private Integer imageFile3;

    @ApiModelProperty(value = "自定义属性")
    @TableField("content1")
    private String content1;

    @ApiModelProperty(value = "自定义属性")
    @TableField("content2")
    private String content2;

    @ApiModelProperty(value = "自定义属性")
    @TableField("content3")
    private String content3;

    @ApiModelProperty(value = "自定义属性")
    @TableField("content4")
    private String content4;

    @ApiModelProperty(value = "自定义属性")
    @TableField("content5")
    private String content5;

    @ApiModelProperty(value = "自定义属性")
    @TableField("content6")
    private String content6;

    @ApiModelProperty(value = "创建人员编号")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人员类型")
    @TableField("create_user_type")
    private String createUserType;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人员名称")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "操作类型，删除或更新")
    @TableField("option_type")
    private String optionType;

    @ApiModelProperty(value = "操作人员编号")
    @TableField("option_user_id")
    private Integer optionUserId;

    @ApiModelProperty(value = "操作人员名称")
    @TableField("option_user_name")
    private String optionUserName;

    @ApiModelProperty(value = "操作时间")
    @TableField("option_time")
    private LocalDateTime optionTime;


    @Override
    protected Serializable pkVal() {
        return this.backupId;
    }

}
